package com.zkthink.ceres.member.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * @ClassName MainAccountSaveDTO
 * @Description: MainAccountSaveDTO
 * @Author ck
 * @Date 2021/12/10
 * @Version V1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MainAccountSaveDTO", description = "添加亲情号")
public class MainAccountSaveDTO {
    @ApiModelProperty(value = "会员手机号")
    private String phone;

    @ApiModelProperty(value = "亲情号和主账号的情亲关系(MainRelativeEnum)")
    private Integer mainRelative;

    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty(value = "验证码")
    private String code;

    @ApiModelProperty(value = "登录密码")
    @Length(max = 64, message = "登录密码长度不能超过64")
    private String password;

    @ApiModelProperty(value = "确认密码")
    @Length(max = 64, message = "确认密码长度不能超过64")
    private String confirmPassword;

    private Long mid;

}
